package com.ruoyi.erp.conventionaldata.service.impl;

import com.ruoyi.erp.conventionaldata.domain.ScrappingCauseTab;
import com.ruoyi.erp.conventionaldata.mapper.ScrappingCauseTabMapper;
import com.ruoyi.erp.conventionaldata.service.ScrappingCauseTabService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ScrappingCauseTabServiceImpl implements ScrappingCauseTabService {
    @Autowired
    private ScrappingCauseTabMapper scrappingCauseTabMapper;

    @Override
    public List<ScrappingCauseTab> getAllScrappingCauseTab(ScrappingCauseTab scrappingCauseTab) {
        return scrappingCauseTabMapper.getAllScrappingCauseTab(scrappingCauseTab);
    }

    @Override
    public ScrappingCauseTab getScrappingCauseTabById(String rowkey) {
        return scrappingCauseTabMapper.getScrappingCauseTabById(rowkey);
    }

    @Override
    public void update(ScrappingCauseTab scrappingCauseTab) {
        scrappingCauseTabMapper.update(scrappingCauseTab);
    }

    @Override
    public int delete(String[] ids) {
        return scrappingCauseTabMapper.delete(ids);
    }

    @Override
    public void add(ScrappingCauseTab scrappingCauseTab) {
        scrappingCauseTabMapper.add(scrappingCauseTab);
    }

}
